﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Terraria.ModLoader
{
	// Token: 0x02000190 RID: 400
	public class GlobalBuff
	{
		// Token: 0x17000125 RID: 293
		// (get) Token: 0x06000FB9 RID: 4025 RVA: 0x0000EA1F File Offset: 0x0000CC1F
		// (set) Token: 0x06000FBA RID: 4026 RVA: 0x0000EA27 File Offset: 0x0000CC27
		public Mod mod { get; internal set; }

		// Token: 0x17000126 RID: 294
		// (get) Token: 0x06000FBB RID: 4027 RVA: 0x0000EA30 File Offset: 0x0000CC30
		// (set) Token: 0x06000FBC RID: 4028 RVA: 0x0000EA38 File Offset: 0x0000CC38
		public string Name { get; internal set; }

		// Token: 0x06000FBD RID: 4029 RVA: 0x0000EA41 File Offset: 0x0000CC41
		public virtual bool Autoload(ref string name)
		{
			return this.mod.Properties.Autoload;
		}

		// Token: 0x06000FBE RID: 4030 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void Update(int type, Player player, ref int buffIndex)
		{
		}

		// Token: 0x06000FBF RID: 4031 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void Update(int type, NPC npc, ref int buffIndex)
		{
		}

		// Token: 0x06000FC0 RID: 4032 RVA: 0x0000ADF8 File Offset: 0x00008FF8
		public virtual bool ReApply(int type, Player player, int time, int buffIndex)
		{
			return false;
		}

		// Token: 0x06000FC1 RID: 4033 RVA: 0x0000ADF8 File Offset: 0x00008FF8
		public virtual bool ReApply(int type, NPC npc, int time, int buffIndex)
		{
			return false;
		}

		// Token: 0x06000FC2 RID: 4034 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void ModifyBuffTip(int type, ref string tip, ref int rare)
		{
		}

		// Token: 0x06000FC3 RID: 4035 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void CustomBuffTipSize(string buffTip, List<Vector2> sizes)
		{
		}

		// Token: 0x06000FC4 RID: 4036 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void DrawCustomBuffTip(string buffTip, SpriteBatch spriteBatch, int originX, int originY)
		{
		}
	}
}
